package com.appbee.news.client;

import javax.inject.Singleton;

import com.appbee.news.client.activty.NewsActivty;
import com.appbee.news.client.activty.RollingNewsActivity;
import com.appbee.news.client.text.NewsStrings;
import com.appbee.news.client.ui.NewsView;
import com.appbee.news.client.ui.RollingNewsView;
import com.appbee.news.shared.NewsRequestFactory;
import com.google.gwt.inject.client.AbstractGinModule;

public class NewsGinModul extends AbstractGinModule
{

	@Override
	protected void configure()
	{
		bind(NewsStrings.class).in(Singleton.class);
		bind(NewsRequestFactory.class).toProvider(
				NewsRequestFactoryProvider.class);
		bind(NewsActivty.View.class).to(NewsView.class).in(Singleton.class);
		bind(RollingNewsActivity.View.class).to(RollingNewsView.class)
				.in(Singleton.class);

	}

}
